<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实例3(网页布局)</title>
    <style>
        *{
            padding: 0px;
            margin: 0px;
        }
        .top{
            height: 50px;
            background-color: rgb(201, 198, 198);
        }
        .body{
            width: 980px;
            height: 300px;
            margin: 10px auto;
        }
        .body li{
            float: left;
            width: 237px;
            height: 300px;
            background-color: rgb(219, 218, 218);
            list-style: none;
            margin-left: 8px;
        }
        .foot{
            margin: 10px auto;
            width: 972px;
            height: 300px;
            background-color: rgb(219, 218, 218);
        }
    </style>
</head>
<body>
    <div class="top"></div>
    <div class="body">
        <ul class="a">
            <li class="a1"></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
    <div class="foot"></div>
</body>
</html>